#app {
  // 主体区域
  .main-container {
    min-height: 100%;
    position: relative;
    margin-left: $sideBarWidth;
    width: calc(100% - 186px);
    height: 100%;
    box-sizing: border-box;
    transition: all .28s ease;
  }
  // 侧边栏
  .sidebar-container {
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    overflow: hidden;
    width: $sideBarWidth;
    transition: all .28s ease;
    background-color: $navBackground;
    box-shadow: 0 1px 4px rgba(0,21,41,0.08);
    .left-logo {
      cursor: pointer;
      height: 70px;
      line-height: 70px;
      text-align: center;
      font-size: 16px;
      font-weight: 900;
      color: $menuTextActive;
      background-color: #fff;
      img{
        vertical-align: middle;
        max-height: 70px;
        max-width: 100%;
      }
    }
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }
    .el-scrollbar__bar.is-vertical{
      opacity: 0;
    }
    .scrollbar-wrapper {
      overflow-x: hidden!important;
      .el-scrollbar__view {
        height: 100%;
      }
    }
    .is-horizontal {
      display: none;
    }
    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }
    .svg-icon {
      margin-right: 15px!important;
      width:18px!important;
      height: 18px!important;
    }
    .menu-wrapper:nth-child(2){
      .svg-icon{
        margin-right: 11px!important;
        width:22px!important;
        height: 22px!important;
      }
    }
    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }
    .is-active > .el-submenu__title{
      color: $menuTextActive!important;
      i{
        color: $iconActive!important;
      }
    }
  }
  .hideSidebar {
    .sidebar-container {
      width: 36px !important;
    }
    .main-container {
      margin-left: 36px;
    }
    .submenu-title-noDropdown {
      padding-left: 10px !important;
      position: relative;
      .el-tooltip {
        padding: 0 10px !important;
      }
    }
    .el-submenu {
      overflow: hidden;
      &>.el-submenu__title {
        padding-left: 10px !important;
        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }
    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }
  .el-menu:last-child {
    //.el-menu-item.is-active{
      margin-bottom: 12px;
    //}
  }

  // 菜单样式覆盖
  .el-menu {
    i {
      color: $icon;
    }
    border-right: none;
    background-color: $menuBackground;
    .el-submenu,
    .el-submenu__title,
    .el-menu-item {
      color: $menuText;
      //min-width: 100px!important;
      font-size: 13px!important;
    }
    .el-submenu__title,
    .el-menu-item {
      height:50px!important;
      line-height: 50px!important;
    }
    .el-submenu{
      .el-menu-item{
        font-size: 12px!important;
      }
    }
    .el-submenu .el-menu-item{
      padding-left: 55px!important;
    }
    .el-submenu__title:hover,
    .el-menu-item.is-active,
    .el-menu-item:focus,
    .el-menu-item:hover {
      //position: relative;
      //z-index: 9999999999999;
      //padding-bottom: 60px;
      background-color: $menuBackgroundActive !important;
      color: $menuTextActive !important;

      i {
        color: $iconActive !important;
      }
    }
    .el-menu-item.is-active::after {
      content: "";
      position: absolute;
      left: 0;
      top: 15px;
      width: 5px;
      height: 20px;
      background-color: $navLogoBackground;
    }
  }


  //适配移动端
  .mobile {
    .main-container {
      margin-left: 0px;
    }
    .sidebar-container {
      transition: transform .28s;
      width: $sideBarWidth !important;
    }
    &.hideSidebar {
      .sidebar-container {
        transition-duration: 0.2s;
        transform: translate3d(-180px, 0, 0);
      }
    }
  }
  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

.el-menu--vertical{
  & >.el-menu{
    .svg-icon{
      margin-right: 16px;
    }
  }
}
